//
//  BaseTableView.m
//  GK
//
//  Created by Seven on 2018/12/19.
//  Copyright © 2018 Seven. All rights reserved.
//

#import "BaseTableView.h"

@implementation BaseTableView




//*
#pragma mark - touches
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    [super touchesBegan:touches withEvent:event];
    if ( !self.dragging && _shouldMultiRecognizer)
    {
        [[self nextResponder] touchesBegan:touches withEvent:event];
    }
}
 
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
    [super touchesEnded:touches withEvent:event];
    if ( !self.dragging  && _shouldMultiRecognizer)
    {
        [[self nextResponder] touchesEnded:touches withEvent:event];
    }
}
 
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
{
    [super touchesEnded:touches withEvent:event];
    if(!self.dragging && _shouldMultiRecognizer)
    {
        [[self nextResponder] touchesCancelled:touches withEvent:event];
    }
}
 
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
    [super touchesMoved:touches withEvent:event];
    if(!self.dragging)
    {
        [[self nextResponder] touchesMoved:touches withEvent:event];
    }
}//*/

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
    return _shouldMultiRecognizer;
}


@end
